package errorLayer;

import javax.swing.JOptionPane;

public class EmptyField extends JOptionPane {
	
	private String field;
	
	public EmptyField (String item) {
		
		this.field = item;
		
		displayMessage();
		
	}
	
	private void displayMessage() {
		
		this.showMessageDialog(getParent(), "You left the " + field + " field empty.\nIt is required that you fill that out before adding.", "ERROR: 401", JOptionPane.OK_OPTION);
		
	}

}
